package com.etrans.util;

import java.util.Date;

import com.etrans.v2.common.utils.DateUtils;
import com.etrans.v2.modules.bonusRule.entity.BonusRule;

public class SerialNumUtil {
	
	public static String getSerialNum(long userId,BonusRule rule){
		return String.format("%s%s%s%s%s",String.valueOf(userId), rule.getTradeType(), rule.getTradeSubType(), rule.getBehavior(), DateUtils.format(new Date(), "yyyyMMddHHmmssSSS"));
	}
}
